package Num22_20200318;

public class Num22_20200318 {
    public static void main(String[] args) {
        System.out.println(DiGui(5));
    }
    //构造递归函数
    public static int DiGui(int n) {
        if(n==1) {
            return 1;
        }else {
            return DiGui(n-1)*n;
        }
    }
}
